100 |
How do I enable the cross link support ( rectangular )
|
99 |
How do I show a link frmo bottom to top, or reverse, not from left to right
local var_Elements as IElements local var_Link as ILink local var_Links as ILinks var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element <sha ;;0>A",nil,nil) var_Elements:Add("Element <sha ;;0>B",0,64) var_Links := oDCOCX_Exontrol1:Links var_Link := var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,1],oDCOCX_Exontrol1:Elements:[Item,2],nil) var_Link:StartPos := CenterAlignment var_Link:EndPos := CenterAlignment |
98 |
What options to align the elements do I have if I use Arrange method
local var_Elements as IElements local var_Links as ILinks local h1,h2,h3 as USUAL oDCOCX_Exontrol1:BeginUpdate() oDCOCX_Exontrol1:ShowGridLines := true var_Elements := oDCOCX_Exontrol1:Elements h1 := var_Elements:Add("Top Alignment",nil,nil):ID var_Elements:Add("Element",nil,nil) var_Elements:Add("Element",nil,nil) var_Elements:Add("Element",nil,nil) h2 := var_Elements:Add("Center Alignment",nil,96):ID var_Elements:Add("Element",nil,96) var_Elements:Add("Element",nil,96) var_Elements:Add("Element",nil,96) h3 := var_Elements:Add("Bottom Alignment",nil,178):ID var_Elements:Add("Element",nil,192) var_Elements:Add("Element",nil,192) var_Elements:Add("Element",nil,192) var_Links := oDCOCX_Exontrol1:Links var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,1],oDCOCX_Exontrol1:Elements:[Item,2],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,1],oDCOCX_Exontrol1:Elements:[Item,3],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,2],oDCOCX_Exontrol1:Elements:[Item,4],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,2],oDCOCX_Exontrol1:Elements:[Item,3],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,5],oDCOCX_Exontrol1:Elements:[Item,6],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,5],oDCOCX_Exontrol1:Elements:[Item,7],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,6],oDCOCX_Exontrol1:Elements:[Item,8],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,6],oDCOCX_Exontrol1:Elements:[Item,7],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,9],oDCOCX_Exontrol1:Elements:[Item,10],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,9],oDCOCX_Exontrol1:Elements:[Item,11],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,10],oDCOCX_Exontrol1:Elements:[Item,12],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,10],oDCOCX_Exontrol1:Elements:[Item,11],nil) oDCOCX_Exontrol1:[DefArrange,exDefArrangeAlign] := 0 oDCOCX_Exontrol1:Arrange(h1) oDCOCX_Exontrol1:[DefArrange,exDefArrangeAlign] := 1 oDCOCX_Exontrol1:Arrange(h2) oDCOCX_Exontrol1:[DefArrange,exDefArrangeAlign] := 2 oDCOCX_Exontrol1:Arrange(h3) oDCOCX_Exontrol1:EndUpdate() |
97 |
Is there an auto-arrange feature that will display the flow-chart centered and zoomed correctly after we are finished building it
|
96 |
Is it possible to change the distance between elements, when calling the Arrange method
|
95 |
How do I organize vertically the elements
|
94 |
Is there a way to create a link which has the same start and end element
|
93 |
How can I prevent hiding the item when an item with an outgoing link, is collapsed
|
92 |
How can I change the toolbar's visual appearance
oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:[Background,exToolBarAppearance] := 0x1000000 oDCOCX_Exontrol1:[Background,exToolBarBackColor] := RGB(255,255,255) oDCOCX_Exontrol1:[Background,exToolBarForeColor] := RGB(40,40,40) oDCOCX_Exontrol1:[Background,exToolBarButtonDownBackColor] := 0x1606060 oDCOCX_Exontrol1:[Background,exToolBarButtonDownForeColor] := RGB(240,240,240) oDCOCX_Exontrol1:[Background,exToolBarButtonHotBackColor] := 0x1a0a0a0 oDCOCX_Exontrol1:[Background,exToolBarButtonHotForeColor] := RGB(255,255,255) |
91 |
How can I change the toolbar's background color
|
90 |
How can I fit or ensure that all elements are in the control's client area
local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",-500,-500):BackColor := RGB(0,255,0) var_Elements:Add("Element B",500,500):BackColor := RGB(255,0,0) var_Elements:Add("Element C",48,24) oDCOCX_Exontrol1:FitToClient() |
89 |
When I use the context menu to insert an image, the size seems to be fixed to 32 pixels. How can I control / change this
METHOD OCX_Exontrol1CreateElement(Element) CLASS MainDialog // CreateElement event - The user creates at runtime a new element. // Element.Edit(0,"multiline,wordwrap") // Element.AutoSize = True OutputDebugString(String2Psz( "Call Edit(0) method of the Element object" )) RETURN NIL METHOD OCX_Exontrol1RClick() CLASS MainDialog // RClick event - Occurs once the user right clicks the control. // SelElement(0).Edit(0,"multiline,wordwrap") oDCOCX_Exontrol1:Selection := oDCOCX_Exontrol1:[ElementFromPoint,-1,-1] OutputDebugString(String2Psz( "Call Edit(0) method of the SelElement(0) property" )) RETURN NIL local var_Element as IElement local var_Elements as IElements oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:VisualAppearance:Add(3,"c:\exontrol\images\hot.ebn") oDCOCX_Exontrol1:[Background,exContextMenuAppearance] := 0x1000000 oDCOCX_Exontrol1:[Background,exContextMenuSelBackColor] := 0x1fcddc0 oDCOCX_Exontrol1:[Background,exElementBorderColor] := 0x3000000 oDCOCX_Exontrol1:SelectObjectColor := RGB(192,221,252) oDCOCX_Exontrol1:[HTMLPicture,"pic1"] := "c:\exontrol\images\zipdisk.gif" oDCOCX_Exontrol1:[HTMLPicture,"pic2"] := "c:\exontrol\images\auction.gif" oDCOCX_Exontrol1:[HTMLPicture,"pic3"] := "c:\exontrol\images\colorize.gif" var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Element := var_Elements:Add("Custom-size pictures:<br><img>pic1:24</img>,<img>pic2:48</img> ,... and so on.",96,48) var_Element:ID := "B" var_Element:CaptionSingleLine := exCaptionWordWrap var_Elements:Add("Element C",48,24) oDCOCX_Exontrol1:EditContextMenuItems := "Size[id=57680][edittype=515][border=0][min=16][max=128][freq=16][editwidth=-128][ticklabel=value = %i ? '<b>'+value : ( value = vmax ? '<fgcolor 808080><font ;6><b>'+value : ( value = vmin ? '<fgcolor 808080><font ;6><b>'+value : '' ) )],Insert[group=3](<img>pic1:32</img>[id=57763],<img>pic2:32</img>[id=57763],Others[id=1000](default[group=3](<img>pic3</img>[id=57763]),<font ;6>other sizes[sep],<img>pic3:16</img>[id=57763],<img>pic3:32</img>[id=57763],<img>pic3:64</img>[id=57763]))" |
88 |
Can I add images to node while editing the node using the Edit method
METHOD OCX_Exontrol1CreateElement(Element) CLASS MainDialog // CreateElement event - The user creates at runtime a new element. // Element.Edit(0,"multiline,wordwrap") // Element.AutoSize = True OutputDebugString(String2Psz( "Call Edit(0) method of the Element object" )) RETURN NIL METHOD OCX_Exontrol1RClick() CLASS MainDialog // RClick event - Occurs once the user right clicks the control. // SelElement(0).Edit(0,"multiline,wordwrap") oDCOCX_Exontrol1:Selection := oDCOCX_Exontrol1:[ElementFromPoint,-1,-1] OutputDebugString(String2Psz( "Call Edit(0) method of the SelElement(0) property" )) RETURN NIL local var_Element as IElement local var_Elements as IElements oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:[Background,exContextMenuAppearance] := 0x1000000 oDCOCX_Exontrol1:[Background,exContextMenuSelBackColor] := 0x10000ff oDCOCX_Exontrol1:SelectObjectStyle := exNoLines oDCOCX_Exontrol1:SelectObjectColor := RGB(192,221,252) oDCOCX_Exontrol1:[HTMLPicture,"pic1"] := "c:\exontrol\images\zipdisk.gif" oDCOCX_Exontrol1:[HTMLPicture,"pic2"] := "c:\exontrol\images\auction.gif" oDCOCX_Exontrol1:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Element := var_Elements:Add("This is a node that displays pictures:<br><img>pic1:48</img>,<img>pic2:48</img> ,... and so on.",96,48) var_Element:ID := "B" var_Element:CaptionSingleLine := exCaptionWordWrap var_Elements:Add("Element C",48,24):BackColor := RGB(255,255,255) |
87 |
I am using the Edit method to edit the node, but still not able to display multiple lines. Is this possible
METHOD OCX_Exontrol1CreateElement(Element) CLASS MainDialog // CreateElement event - The user creates at runtime a new element. // Element.Edit(0,"multiline,wordwrap") // Element.AutoSize = True OutputDebugString(String2Psz( "Call Edit(0) method of the Element object" )) RETURN NIL METHOD OCX_Exontrol1RClick() CLASS MainDialog // RClick event - Occurs once the user right clicks the control. // SelElement(0).Edit(0,"multiline,wordwrap") oDCOCX_Exontrol1:Selection := oDCOCX_Exontrol1:[ElementFromPoint,-1,-1] OutputDebugString(String2Psz( "Call Edit(0) method of the SelElement(0) property" )) RETURN NIL local var_Element as IElement local var_Elements as IElements oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:[Background,exContextMenuAppearance] := 0x1000000 oDCOCX_Exontrol1:[Background,exContextMenuSelBackColor] := 0x10000ff oDCOCX_Exontrol1:SelectObjectStyle := exNoLines oDCOCX_Exontrol1:SelectObjectColor := RGB(192,221,252) var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Element := var_Elements:Add("Right-<b>Click</b> the node to edit it.",96,48) var_Element:ID := "B" var_Element:CaptionSingleLine := exCaptionWordWrap var_Elements:Add("Element C",48,24):BackColor := RGB(255,255,255) |
86 |
How can I change the visual appearance of the edit's context menu
METHOD OCX_Exontrol1CreateElement(Element) CLASS MainDialog // CreateElement event - The user creates at runtime a new element. // Element.Edit(0) // Element.AutoSize = True OutputDebugString(String2Psz( "Call Edit(0) method of the Element object" )) RETURN NIL METHOD OCX_Exontrol1RClick() CLASS MainDialog // RClick event - Occurs once the user right clicks the control. // SelElement(0).Edit(0) oDCOCX_Exontrol1:Selection := oDCOCX_Exontrol1:[ElementFromPoint,-1,-1] OutputDebugString(String2Psz( "Call Edit(0) method of the SelElement(0) property" )) RETURN NIL local var_Elements as IElements oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:[Background,exContextMenuAppearance] := 0x1000000 oDCOCX_Exontrol1:[Background,exContextMenuSelBackColor] := 0x10000ff oDCOCX_Exontrol1:SelectObjectStyle := exNoLines oDCOCX_Exontrol1:SelectObjectColor := RGB(192,221,252) var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Right-Click to edit this node",96,48):ID := "B" var_Elements:Add("Element C",48,24):BackColor := RGB(255,255,255) |
85 |
How can I edit the node once the user right-click the element
|
84 |
I wish to return the name that is displayed in the Element that I have selected
|
83 |
Been playing with the surface control with the embedded ExGrid ActiveX...I can see most events coming through via the Surface control but I can't get the OnOLEStartDrag event to fire
|
82 |
Is it possible to assign/add a percent to
an element
|
81 |
How can I disable selecting the nodes/elements
oDCOCX_Exontrol1:AllowSelectObject := exDisallow oDCOCX_Exontrol1:AllowSelectNothing := false oDCOCX_Exontrol1:AllowSelectObjectRect := exDisallow oDCOCX_Exontrol1:AllowToggleSelectKey := exDisallow |
80 |
How can I set my zooming levels on the control's toolbar
local var_Elements as IElements oDCOCX_Exontrol1:ZoomLevels := "75,100,150,200" oDCOCX_Exontrol1:AllowLinkObjects := exDisallow var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",48,12):BackColor := RGB(255,255,255) |
79 |
How can I prevent zooming the surface
oDCOCX_Exontrol1:AllowZoomSurface := exDisallow oDCOCX_Exontrol1:AllowZoomWheelSurface := false oDCOCX_Exontrol1:ToolBarFormat := "-1,100" |
78 |
How can I prevent adding the links
local var_Elements as IElements oDCOCX_Exontrol1:AllowLinkObjects := exDisallow var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",48,12):BackColor := RGB(255,255,255) |
77 |
How can I fix all elements on the surface, so no moving or resizing is allowed
local var_Elements as IElements oDCOCX_Exontrol1:AllowResizeObject := exDisallow oDCOCX_Exontrol1:AllowMoveObject := exDisallow var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",48,12):BackColor := RGB(255,255,255) |
76 |
How can I link elements with no pressing the SHIFT key
local var_Elements as IElements oDCOCX_Exontrol1:AllowInsertObject := false oDCOCX_Exontrol1:AllowLinkObjects := exLeftClick oDCOCX_Exontrol1:AllowMoveObject := exDisallow var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",48,12):BackColor := RGB(255,255,255) |
75 |
How can I disable creating the tree/hierarchies
local var_Elements as IElements oDCOCX_Exontrol1:AllowInsertObject := false var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",48,12):BackColor := RGB(255,255,255) |
74 |
How can I create new elements using simple clicks rather than double clicks
|
73 |
How can I disable creating new elements at runtime
|
72 |
I've noticed that the links cut the elements. Is it possible to show the links on the back
local var_Elements as IElements local var_Links as ILinks oDCOCX_Exontrol1:ShowLinksType := exLinkStraight oDCOCX_Exontrol1:ShowLinks := exShowExtendedLinks var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",48,12):BackColor := RGB(255,255,255) var_Links := oDCOCX_Exontrol1:Links var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,"A"],oDCOCX_Exontrol1:Elements:[Item,"B"],nil):Caption := "link" |
71 |
How can I show a picture on the link
|
70 |
How can I show a caption on the link
|
69 |
I am using EBN to show my arrows, the question is if I can make it bigger/larger
local var_Appearance as IAppearance local var_Elements as IElements local var_Links as ILinks var_Appearance := oDCOCX_Exontrol1:VisualAppearance var_Appearance:Add(1,"c:\exontrol\images\normal.ebn") var_Appearance:Add(2,"CP:1 -2 -2 2 2") var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",96,-24):ID := "C" var_Links := oDCOCX_Exontrol1:Links var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,"A"],oDCOCX_Exontrol1:Elements:[Item,"B"],nil) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,"A"],oDCOCX_Exontrol1:Elements:[Item,"C"],nil) oDCOCX_Exontrol1:LinksArrowColor := 0x2000000 |
68 |
Is it possible to show different type of arrows for links
local var_Elements as IElements local var_Links as ILinks oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element A",nil,nil):ID := "A" var_Elements:Add("Element B",96,24):ID := "B" var_Elements:Add("Element C",96,-24):ID := "C" var_Links := oDCOCX_Exontrol1:Links var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,"A"],oDCOCX_Exontrol1:Elements:[Item,"B"],nil):ArrowColor := RGB(255,0,0) var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,"A"],oDCOCX_Exontrol1:Elements:[Item,"C"],nil):ArrowColor := 0x1000000 |
67 |
How can I remove or clear the entire surface
oDCOCX_Exontrol1:Elements:Add("element",nil,nil) oDCOCX_Exontrol1:Elements:Clear() oDCOCX_Exontrol1:Home() |
66 |
How can I programmatically add a child element, or create a tree/hierarchy
local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Root",nil,nil):ID := "rootID" var_Elements:Insert("Child 1","rootID",nil) var_Elements:Insert("Child 2","rootID",nil):ID := "childID" var_Elements:Insert("Child 3","rootID",nil) var_Elements:Insert("Sub-Child 1.2","childID",nil) var_Elements:Insert("Sub-Child 2.2","childID",nil) |
65 |
I've noticed that the element's background is transparent. Can I make it opaque
local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("new 1",nil,nil):BackColor := RGB(255,255,255) var_Elements:Add("new 1",24,24):BackColor := RGB(240,240,240) |
64 |
How can I add a resizable element
local var_Element,var_Element1 as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:Add("new 1",nil,nil) var_Element:AutoSize := false var_Element:Resizable := true var_Element1 := var_Elements:Add("new 1",24,24) var_Element1:AutoSize := false var_Element1:Resizable := true |
63 |
How can I programmatically add a new element
local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("new 1",nil,nil) var_Elements:Add("new 1",24,24) |
62 |
Is it possible to assign a tooltip to an element
|
61 |
How do I specify direct/straight link for all links
local var_Elements as IElements local var_Links as ILinks oDCOCX_Exontrol1:ShowLinksType := exLinkStraight | exLinkDirect var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element <sha ;;0>A",nil,nil) var_Elements:Add("Element <sha ;;0>B",96,24) var_Links := oDCOCX_Exontrol1:Links var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,1],oDCOCX_Exontrol1:Elements:[Item,2],nil) |
60 |
How do I show a direct/straight link
local var_Elements as IElements local var_Links as ILinks var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element <sha ;;0>A",nil,nil) var_Elements:Add("Element <sha ;;0>B",96,24) var_Links := oDCOCX_Exontrol1:Links var_Links:Add(oDCOCX_Exontrol1:Elements:[Item,1],oDCOCX_Exontrol1:Elements:[Item,2],nil):ShowLinkType := exLinkStraight | exLinkDirect |
59 |
How can I ensure that a specified element fits the surface's visible area
local var_Elements as IElements local var_Pattern as IPattern var_Elements := oDCOCX_Exontrol1:Elements var_Pattern := var_Elements:Add("Element A",-100,nil):Pattern var_Pattern:Type := exPatternBDiagonal var_Pattern:Color := RGB(224,224,224) var_Elements:Add("Element B",2000,nil):ScrollTo(exMiddleCenter) |
58 |
Is it possible to show a pattern like ( not available ) over an element
local var_Elements as IElements local var_Pattern as IPattern var_Elements := oDCOCX_Exontrol1:Elements var_Pattern := var_Elements:Add("Element+Pattern",-100,nil):Pattern var_Pattern:Type := exPatternBDiagonal var_Pattern:Color := RGB(224,224,224) var_Elements:Add("Element",100,nil) |
57 |
How can I specify a different overview color for the element
local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element+A",-100,nil):OverviewColor := RGB(255,0,0) var_Elements:Add("Element+B",100,nil) oDCOCX_Exontrol1:[ScrollPos,true] := 512 |
56 |
I've noticed that some lines are shown on the border, how can I get ride of them
|
55 |
How can I handle clicking an icon or a picture
|
54 |
How can I display a picture
oDCOCX_Exontrol1:[HTMLPicture,"pic1"] := "c:\exontrol\images\zipdisk.gif" oDCOCX_Exontrol1:[HTMLPicture,"pic2"] := "c:\exontrol\images\auction.gif" oDCOCX_Exontrol1:Elements:Add("Element",nil,nil):Pictures := "pic1/pic2" |
53 |
How can I display a picture
oDCOCX_Exontrol1:[HTMLPicture,"pic1"] := "c:\exontrol\images\zipdisk.gif" oDCOCX_Exontrol1:[HTMLPicture,"pic2"] := "c:\exontrol\images\auction.gif" oDCOCX_Exontrol1:Elements:Add("Icon <img>pic1</img> or <img>pic2</img>",nil,nil) |
52 |
How can I display an icon
oDCOCX_Exontrol1:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") oDCOCX_Exontrol1:Elements:Add("Element",nil,nil):Pictures := "0/1,2" |
51 |
How can I display an icon
|
50 |
How can I prevent moving all descendent/outgoing elements when focused element is moved, more like a free move
|
49 |
How can I display the +/- expand/collapse glyphs next to linked elements
|
48 |
How can I host the Exontrol.Button inside the surface
local var_Element as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:Add("ActiveX",nil,nil) var_Element:Type := exElementHostControl var_Element:ElementFormat := "" + CHR(34) + "check" + CHR(34) + ":18," + CHR(34) + "client" + CHR(34) + "" var_Element:ShowCheckBox := true var_Element:Control := "Exontrol.Button" // Generate Source for 'ExButton 1.0 Control Library(ExButton.dll)' server from Tools\Automation Server... IButton{var_Element:Object}:Caption := "<sha ;;0>button" var_Element:Height := 32 var_Element:Width := 128 |
47 |
How can I host a Command button
|
46 |
How can I handle the events of the inner ActiveX control
METHOD OCX_Exontrol1OleEvent(Element,Ev) CLASS MainDialog // OleEvent event - Occurs once an inside control fires an event. OutputDebugString(String2Psz( AsString(Ev) )) RETURN NIL local var_Element as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:InsertControl("Forms.CommandButton.1",nil,nil,nil) var_Element:ElementFormat := "" + CHR(34) + "check" + CHR(34) + ":18," + CHR(34) + "client" + CHR(34) + "" // Generate Source for 'Microsoft Forms 2.0 Object Library(FM20.DLL)' server from Tools\Automation Server... ICommandButton{var_Element:Object}:Caption := "command" var_Element:ShowCheckBox := true var_Element:Height := 48 var_Element:Width := 128 |
45 |
How can I display a checkbox while my node hosts an ActiveX inside
local var_Element as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:InsertControl("Forms.CommandButton.1",nil,nil,nil) var_Element:ElementFormat := "" + CHR(34) + "check" + CHR(34) + ":18," + CHR(34) + "client" + CHR(34) + "" // Generate Source for 'Microsoft Forms 2.0 Object Library(FM20.DLL)' server from Tools\Automation Server... ICommandButton{var_Element:Object}:Caption := "command" var_Element:ShowCheckBox := true var_Element:Height := 48 var_Element:Width := 128 |
44 |
Is it possible to display a caption while the element hosts an ActiveX control
local var_Element as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:InsertControl("Forms.CommandButton.1",nil,nil,nil) var_Element:ElementFormat := "18;" + CHR(34) + "caption" + CHR(34) + "/" + CHR(34) + "client" + CHR(34) + "" // Generate Source for 'Microsoft Forms 2.0 Object Library(FM20.DLL)' server from Tools\Automation Server... ICommandButton{var_Element:Object}:Caption := "command" var_Element:Caption := "Forms.CommandButton" var_Element:CaptionAlign := exTopCenter var_Element:Height := 48 var_Element:Width := 128 |
43 |
I host an ActiveX control but it does not cover the whole element. What can be done
local var_Element,var_Element1 as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:InsertControl("Forms.CommandButton.1",nil,nil,nil) var_Element:ElementFormat := "" + CHR(34) + "client" + CHR(34) + "" // Generate Source for 'Microsoft Forms 2.0 Object Library(FM20.DLL)' server from Tools\Automation Server... ICommandButton{var_Element:Object}:Caption := "command" var_Element:Height := 32 var_Element:Width := 128 var_Element1 := var_Elements:InsertControl("Forms.CommandButton.1",nil,nil,nil) var_Element1:ElementFormat := "" + CHR(34) + "client" + CHR(34) + "" ICommandButton{var_Element1:Object}:Caption := "command" var_Element1:Height := 32 var_Element1:Width := 128 |
42 |
How can I host my ActiveX to the surface (method 2)
|
41 |
How can I host my ActiveX to the surface (method 1)
local var_Element as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:Add("ActiveX",nil,nil) var_Element:Type := exElementHostControl var_Element:ElementFormat := "" + CHR(34) + "client" + CHR(34) + "" var_Element:Control := "Forms.CommandButton.1" // Generate Source for 'Microsoft Forms 2.0 Object Library(FM20.DLL)' server from Tools\Automation Server... ICommandButton{var_Element:Object}:Caption := "command" var_Element:Height := 32 var_Element:Width := 128 |
40 |
How can I define the elements with a solid color on the background
|
39 |
Can I display the status to a different part of the element
|
38 |
How can I remove or hide the status part of the event
METHOD OCX_Exontrol1AddElement(Element) CLASS MainDialog // AddElement event - A new element has been added to the surface. // Element.StatusSize = 0 RETURN NIL local var_Elements as IElements oDCOCX_Exontrol1:[Background,exElementStatusColor] := -1 var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Node A",nil,nil) var_Elements:Add("Node B",96,24) |
37 |
How can I change the visual appearance of the border for all elements
local var_Elements as IElements oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:[Background,exElementBorderColor] := 0x1000000 var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element+A",nil,nil) var_Elements:Add("Element+B",96,24) |
36 |
How can I change the color of the border for all elements
|
35 |
How can I remove the border for all elements
local var_Elements as IElements oDCOCX_Exontrol1:[Background,exElementBorderColor] := -1 var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element+A",nil,nil) var_Elements:Add("Element+B",96,24) |
34 |
How do I change the visual appearance the glpyh that shows when the element is added as a child
local var_Elements as IElements oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:VisualAppearance:Add(2,"c:\exontrol\images\pushed.ebn") oDCOCX_Exontrol1:[Background,exHoverInsertObject] := 0x1000000 oDCOCX_Exontrol1:[Background,exHoverInsertObjectGlyph] := 0x2000000 var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element <sha ;;0>A",nil,nil) var_Elements:Add("Element <sha ;;0>B",96,24) |
33 |
Is it possible to change the color for the glpyh that shows when the element is added as a child
local var_Elements as IElements oDCOCX_Exontrol1:[Background,exHoverInsertObject] := RGB(255,0,0) oDCOCX_Exontrol1:[Background,exHoverInsertObjectGlyph] := RGB(255,0,0) var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element <sha ;;0>A",nil,nil) var_Elements:Add("Element <sha ;;0>B",96,24) |
32 |
How can I change the color to show a valid link
|
31 |
How can I change the color to show an invalid link
|
30 |
How can I disable adding the elements as child of other nodes
local var_Elements as IElements oDCOCX_Exontrol1:AllowInsertObject := false var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("Element <sha ;;0>A",nil,nil) var_Elements:Add("Element <sha ;;0>B",96,24) |
29 |
How can I prevent moving the outgoing /descendents elements when moving an element
|
28 |
How can I add programatically a link
|
27 |
How do I prevent adding a link between elements
|
26 |
How can I hide the 100% button ( zoom ) on the control's toolbar
|
25 |
Is it possible to hide the Home button on the control's toolbar
|
24 |
How can I hide the grid lines, including the axis
oDCOCX_Exontrol1:ShowGridLines := false oDCOCX_Exontrol1:AxisStyle := exNoLines |
23 |
How can I hide the grid lines
|
22 |
How can I clear the images shown on the control's toolbar
|
21 |
How can I replace the default icons shown on the control's toolbar
oDCOCX_Exontrol1:ToolBarReplaceIcon(0,-1) oDCOCX_Exontrol1:ToolBarImages("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") |
20 |
How can I replace the default icons shown on the control's toolbar
|
19 |
How can I add an anchor element to the control's toolbar
|
18 |
How can I add a button/image to the control's toolbar
|
17 |
How can I add a button to the control's toolbar
|
16 |
How can I hide the control's toolbar
oDCOCX_Exontrol1:ToolBarVisible := false |
15 |
How can I prevent selecting the elements
|
14 |
How can I show the selected elements the same as the control has the focus
oDCOCX_Exontrol1:HideSel := false oDCOCX_Exontrol1:SelectObjectColorInactive := oDCOCX_Exontrol1:SelectObjectColor oDCOCX_Exontrol1:SelectObjectTextColorInactive := oDCOCX_Exontrol1:SelectObjectTextColor oDCOCX_Exontrol1:Elements:Add("element",nil,nil):Selected := true |
13 |
How can I show the selected elements with a different border
oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:HideSel := false oDCOCX_Exontrol1:SelectObjectStyle := exLinesSolid oDCOCX_Exontrol1:SelectObjectColor := 0x1000000 oDCOCX_Exontrol1:SelectObjectTextColor := RGB(0,0,0) oDCOCX_Exontrol1:SelectObjectColorInactive := oDCOCX_Exontrol1:SelectObjectColor oDCOCX_Exontrol1:SelectObjectTextColorInactive := oDCOCX_Exontrol1:SelectObjectTextColor oDCOCX_Exontrol1:Elements:Add("element",nil,nil):Selected := true |
12 |
How can I show the selected elements with a different background color
oDCOCX_Exontrol1:HideSel := false oDCOCX_Exontrol1:SelectObjectStyle := exNoLines oDCOCX_Exontrol1:SelectObjectColor := RGB(255,0,0) oDCOCX_Exontrol1:SelectObjectTextColor := RGB(255,255,255) oDCOCX_Exontrol1:SelectObjectColorInactive := oDCOCX_Exontrol1:SelectObjectColor oDCOCX_Exontrol1:SelectObjectTextColorInactive := oDCOCX_Exontrol1:SelectObjectTextColor oDCOCX_Exontrol1:Elements:Add("element",nil,nil):Selected := true |
11 |
Is it possible to add an inner control on the surface
METHOD OCX_Exontrol1OleEvent(Element,Ev) CLASS MainDialog // OleEvent event - Occurs once an inside control fires an event. OutputDebugString(String2Psz( AsString(Ev) )) RETURN NIL local var_Element as IElement local var_Elements as IElements var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:Add("activex hosting",nil,nil) var_Element:Type := exElementHostControl var_Element:Control := "Forms.CommandButton.1" var_Element:Caption := "Command Button" var_Element:Height := 64 var_Element:Width := 128 var_Element:ElementFormat := "14;" + CHR(34) + "caption" + CHR(34) + "/" + CHR(34) + "client" + CHR(34) + "" var_Element:CaptionAlign := exTopCenter |
10 |
How can I make the control read-only
|
9 |
How can I handle clicking a picture on the element
|
8 |
How can I show the hand cursor when user hovers the element's image
|
7 |
How can I show the hand cursor when user hovers the element's checkbox
|
6 |
How can I remove the status part for all elements
METHOD OCX_Exontrol1AddElement(Element) CLASS MainDialog // AddElement event - A new element has been added to the surface. // Element.StatusSize = 0 RETURN NIL oDCOCX_Exontrol1:[Background,exElementStatusColor] := -1 oDCOCX_Exontrol1:Elements:Add("new element",nil,nil) |
5 |
How can I remove the border for all elements
oDCOCX_Exontrol1:[Background,exElementBorderColor] := -1 oDCOCX_Exontrol1:Elements:Add("new element",nil,nil) |
4 |
How do I edit the element's caption once the user creates the element
METHOD OCX_Exontrol1CreateElement(Element) CLASS MainDialog // CreateElement event - The user creates at runtime a new element. // Element.Edit(0) // Element.AutoSize = True RETURN NIL |
3 |
How can I align the element's checkbox next to the text
local var_Element as IElement local var_Elements as IElements oDCOCX_Exontrol1:BeginUpdate() var_Elements := oDCOCX_Exontrol1:Elements var_Element := var_Elements:Add("text",nil,nil) var_Element:ShowCheckBox := true var_Element:CaptionAlign := exTopRight var_Element:CheckBoxAlign := exTopLeft oDCOCX_Exontrol1:EndUpdate() |
2 |
How can I assign a check-box to all elements
METHOD OCX_Exontrol1AddElement(Element) CLASS MainDialog // AddElement event - A new element has been added to the surface. // Element.ShowCheckBox = True RETURN NIL local var_Elements as IElements oDCOCX_Exontrol1:BeginUpdate() var_Elements := oDCOCX_Exontrol1:Elements var_Elements:Add("",-24,-24) var_Elements:Add("",nil,nil):Checked := exChecked oDCOCX_Exontrol1:Home() oDCOCX_Exontrol1:EndUpdate() |
1 |
How do I change the control's background color
oDCOCX_Exontrol1:BackColor := RGB(240,240,240) |